﻿using System;
using System.IO;
using HeritageAcademy.Models.DataModels;
using HeritageAcademy.Shared;

namespace HeritageAcademy.Models.Loaders
{
    public sealed class TestResultsLoader : LoaderBase<TestResults>
    {
        public TestResultsLoader(TestResults results, string userId) : base(results)
        {
            Initialize(Path.Combine(IOHelper.CommonMetaDataFolder, Shared.Properties.Resources.Application_ResultsFolder),
                       String.Format("{0}.results", userId)
                       );
        }
    }
}